package com.qianfeng.yime.util;

import com.qianfeng.yime.model.City;
import com.qianfeng.yime.model.User;

/**
 * Created by IDEA
 * User : SL
 * on  2015/3/10.
 * 20:09
 */

/**
 * 单例模式
 */
public class CurrentSingleton {

    private User user;

    /**
     * 定位城市
     */
    private City city;

    /**
     * 当前城市
     */
    private City currentCity;

    private static CurrentSingleton ourInstance;

    public static CurrentSingleton getInstance() {
        if (ourInstance == null) {
            ourInstance = new CurrentSingleton();
        }
        return ourInstance;
    }

    private CurrentSingleton() {
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public City getCity() {
        return city;
    }

    public void setCity(City city) {
        this.city = city;
    }

    public City getCurrentCity() {
        return currentCity;
    }

    public void setCurrentCity(City currentCity) {
        this.currentCity = currentCity;
    }
}
